package com.example.bootkafka;

import lombok.extern.slf4j.Slf4j;
import org.springframework.kafka.annotation.KafkaListener;
import org.springframework.stereotype.Service;

/**
 * @author xupeng
 * @Date 2022/2/20
 */
@Service
@Slf4j
public class Consumer {

    @KafkaListener(id = "webGroup", topics = "topic_input")
    public void listen(String input) {
        log.info("input value: {}" , input);
    }
}
